﻿using IQIGame.Onigao.Framework;
using UnityEditor;
using UnityEditor.UI;

namespace IQIGame.Onigao.Game.Editors
{
    [CustomEditor(typeof(ExImage))]
    [CanEditMultipleObjects]
    public class ExImageEditor : ImageEditor
    {
        private SerializedProperty _isAutoI18N;

        protected override void OnEnable()
        {
            base.OnEnable();

            _isAutoI18N = serializedObject.FindProperty(nameof(_isAutoI18N));
        }

        public override void OnInspectorGUI()
        {
            serializedObject.Update();
            EditorGUILayout.PropertyField(_isAutoI18N);
            serializedObject.ApplyModifiedProperties();
            base.OnInspectorGUI();
        }
    }
}
